#ifndef EXPCOLLECTIONPARAFRAME_H
#define EXPCOLLECTIONPARAFRAME_H

#include <QFrame>
#include<QTableWidgetItem>

#include"experiment.h"
#include "myscanaxis.h"

namespace Ui {
class ExpCollectionParaFrame;
}

class ExpCollectionParaFrame : public QFrame
{
    Q_OBJECT
    
public:
    explicit ExpCollectionParaFrame(QWidget *parent = 0,Experiment* pExperiment=NULL);
    ~ExpCollectionParaFrame();
    
    void LoadData();
signals:
    void SIG_DataChanged();
private slots:
    void on_checkBox_PreScan_clicked(bool checked);

    void on_radioButton_SweepScan_clicked();

    void on_radioButton_HopScan_clicked();

    void on_tableWidget_PreScan_itemChanged(QTableWidgetItem *item);

    void on_tableWidget_Hop_itemChanged(QTableWidgetItem *item);

    void on_tableWidget_Sweep_itemChanged(QTableWidgetItem *item);

    void OnDataChanged();

    void OnElementChooseChanged(bool,QString);

private:
    Ui::ExpCollectionParaFrame *ui;
    Experiment* pExperiment;
    AnalyteDataBase *pAnalyteDataBase;
    ExpConllectPara *pExpConllectPara;

    MyScanAxis *pPreMyScanAxis;
    MyScanAxis *pMainMyScanAxis;
};

#endif // EXPCOLLECTIONPARAFRAME_H
